#ifndef __TRANS_H__
#define __TRANS_H__

#include <func.h>

typedef struct train_s
{
    int length;
    char data[1000];
} train_t;

int transfile(int netfd,const char* filename);
int recvn(int netfd, void *buf, int length);
int recvfile(int netfd);

#endif
